Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 3 - Geometric Styles / Geometric Styles Reference
Functions / Getting and Setting the Pen Width


GXGetStylePen

You can use the GXGetStylePen function to determine the pen width of a particular style object.

Fixed GXGetStylePen(gxStyle source);
source
A reference to the style object whose pen width you want to determine.
function result
The pen width of the source style object.
DESCRIPTION
A pen width of 0.0 indicates a hairline width; QuickDraw GX always draws hairlines one pixel wide.

ERRORS, WARNINGS, AND NOTICES
Errors
out_of_memory
style_is_nil
SEE ALSO
For a discussion of the drawing pen, see "The Geometric Pen" on page 3-15.

For an example of changing a shape's pen width, see "Manipulating Pen Width and Placement" on page 3-51.

To change the pen width of a style object, use the GXSetStylePen function, which is described in the next section.

To determine the pen width of a style object associated with a particular shape, use the GXGetShapePen function, which is described on page 3-121. To change the pen width of a style object associated with a particular shape, use the GXSetShapePen function, which is described on page 3-122.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help